<HTML><HEAD><TITLE>EplexInstance:eplex_read(++Format,++File)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(eplex)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>EplexInstance:eplex_read(++Format,++File)</H1>
Read a problem from a file into eplex instance EplexInstance.
<DL>
<DT><EM>Format</EM></DT>
<DD>lp or mps
</DD>
<DT><EM>File</EM></DT>
<DD>File name
</DD>
</DL>
<H2>Description</H2>

   Read a problem from a file and setup a solver for it in EplexInstance.
   A solver should not already be setup for EplexInstance. Format is lp or
   mps. Note that minimisation of the objective is assumed for mps format,
   as the sense of the objective is not included in the mps format.
   Minimisation is also assumed for external solvers that ignore the
   optimisation direction of the lp file (e.g. Xpress).  Note also that
   although quadratic problems can be read in correctly if supported by the
   external solver, the quadratic objective coefficients are not extracted
   from the problem by eplex. These coefficients are used to set/reset the
   objective when a problem is probed with a different objective in
   eplex_probe/2 or lp_probe/3, so the objective will not be changed or
   restored correctly in this case.  

<H3>Exceptions</H3>
<DL>
<DT><EM>(5) type error </EM>
<DD>EplexInstance already has a solver setup for it.
</DL>
<H2>See Also</H2>
<A HREF="../../lib/eplex/eplex_write-2.html">eplex_write / 2</A>, <A HREF="../../lib/eplex/lp_write-3.html">lp_write / 3</A>, <A HREF="../../lib/eplex/lp_setup-4.html">lp_setup / 4</A>, <A HREF="../../lib/eplex/eplex_probe-2.html">eplex_probe / 2</A>
</BODY></HTML>
